//
//  radarViewController.m
//  MyChatchat
//
//  Created by lanou3g on 16/3/30.
//  Copyright © 2016年 小灰灰. All rights reserved.
//

#import "radarViewController.h"
#import "LCradar.h"
#import "PrefixHeader.pch"
@interface radarViewController ()

@end

@implementation radarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    
    [[UIApplication sharedApplication] setStatusBarStyle:(UIStatusBarStyleLightContent)];
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.view.bounds];
    
    imageView.image = [UIImage imageNamed:@"SkyBg01@2x"];
    
    [self.view addSubview:imageView];
    
    UIButton *bt = [UIButton buttonWithType:UIButtonTypeSystem];
    
    bt.frame = CGRectMake(20, 30, 30, 20);
    
    [bt setTitle:@"退出" forState:(UIControlStateNormal)];
    
    [bt addTarget:self action:@selector(btAction) forControlEvents:UIControlEventTouchUpInside];
    
    LCradar *radar = [[LCradar alloc] initWithFrame:CGRectMake(0, (KCGFloatheight - KCGFloatwidth) / 2, KCGFloatwidth, KCGFloatwidth) andThumbnail:@"add_friend_icon_reda@3x"];
    [self.view addSubview:radar];
    
    [self.view addSubview:bt];
}

- (void)btAction
{
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)viewWillDisappear:(BOOL)animated
{
    [[UIApplication sharedApplication] setStatusBarStyle:(UIStatusBarStyleDefault)];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
